﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Model="clr-namespace:GJReminder.Model">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../Style/Styles.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <DataTemplate x:Key="EventDataTemplate">
        <StackPanel>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                    </Grid.RowDefinitions>
                    <Border Style="{StaticResource SliceStyle}">
                        <StackPanel>
                            <TextBlock HorizontalAlignment="Center" FontSize="25" FontWeight="Bold" Text="{Binding DisplayDate}" />
                            <TextBlock HorizontalAlignment="Center" FontSize="18" Text="{Binding DisplayMonth}" />
                            <TextBlock HorizontalAlignment="Center" FontSize="12" Text="{Binding DisplayYear}" />
                        </StackPanel>
                    </Border>
                    <TextBlock Grid.Row="1" Margin="10,0,5,5" FontFamily="Tahoma">9:00 pm</TextBlock>
                </Grid>
                <Grid Grid.Column="1" Margin="5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" FontSize="25" Text="{Binding Title}" TextTrimming="WordEllipsis"/>
                    <TextBlock Grid.Row="1" FontSize="16" FontStyle="Italic" Text="{Binding Location}" TextTrimming="WordEllipsis"/>
                    <TextBlock Grid.Row="2" Foreground="Gray" Text="{Binding Description, Mode=Oneway}" TextWrapping="Wrap" IsEnabled="False" MaxHeight="150"/>
                </Grid>
            </Grid>
            <Separator Margin="20,5,20,5"/>
        </StackPanel>
    </DataTemplate>
</ResourceDictionary>